package cn.south.campus.business.mapper;

import cn.south.campus.business.model.entity.Goods;
import cn.south.campus.business.model.req.GoodsReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 二手商品表 Mapper 接口
 * </p>
 *
 * @author chow
 * @since 2024-11-13
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    Page<Goods> pageQuery(PageDTO<Goods> pageDto, @Param("req") GoodsReq req);

    Goods detail(Long id);
}
